<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style type="text/css" media="all">
a:link, a:visited, a:active { text-decoration: underline; color: #000000; }
a:hover { text-decoration: underline; color: #FF0000; }
body { font-family:Arial, Helvetica, sans-serif; font-size: 12px; }
table { font-family:Arial, Helvetica, sans-serif; font-size: 12px; }
.board_header  { font-family:Arial, Helvetica, sans-serif; color: #FFF; font-size: 12px; }
.board_item    { color: #666666; }
.board_item p  { margin: 0px; line-height:120%; }

#bulletin_add_table  { background-color: #FFFFFF; width: 600px; }
#bulletin_add_table th { background-color: #EEEEEE; }
#bulletin_add_table td { background-color: #EEEEEE; }
#bulletin_add_table_th { background-color: #5a7594; color: #FFFFFF;}

#id_body { width: 100%; margin-left: auto; margin-right: auto; height: 300px; }
</style>
</head>
<body>
<table width="90%" height="40" board="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
    <tr>
        <td align="left"><a href="{% url index %}">首页</a></td>
        <td align="right">
        {% if req.user.is_authenticated %}
        你好，{{ req.user }}&nbsp;你可以<a href="{% url member_logout %}">退出</a>
        {% else %}
        <a href="{% url member_login %}">登陆</a>&nbsp;|&nbsp;<a href="{% url member_register %}">注册</a>
        {% endif %}
        </td>
    </tr>
</table>
{% block main %}{% endblock %}
</body>
</html>